using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
using GDGeek;
using MrPP.SampleLib;

namespace Shows_3D
{
    public static class AddonFactoryDataReaderWriter
    {
        public static void WriteAddonFactoryData(this NetworkWriter writer, AddonFactory.Data data)
        {
            writer.WriteString(data.type);
            writer.WriteString(data.data);
        }

        public static AddonFactory.Data ReadAddonFactoryData(this NetworkReader reader)
        {
            return new AddonFactory.Data(reader.ReadString(),reader.ReadString());
        }
    }
}